import { get, post } from '@/utils/request'
const BASE_URL = window.baseUrl.mlk

/** 作业首页列表  */
export function getList(query) {
  return get(BASE_URL + '/scheduling/schedulingList', query)
}
/** 作业已有任务列表  */
export function getScheduTaskList(query) {
  return get(BASE_URL + '/scheduling/getScheduTaskList', query)
}
/** 添加时-作业列表  */
export function addScheduTaskList(query) {
  return get(BASE_URL + '/scheduling/addScheduTaskList', query)
}

/** 添加作业  */
export function schedulingSave(query) {
  return post(BASE_URL + '/scheduling/schedulingSave', query)
}
/**  获取作业详情 */
export function schedulingdetail(query) {
  return get(BASE_URL + '/scheduling/schedulingdetail', query)
}

/**   修改作业*/
export function schedulingUpdate(query) {
  return post(BASE_URL + '/scheduling/schedulingUpdate', query)
}

/**  作业删除 */
export function schedulingDelete(query) {
  return get(BASE_URL + '/scheduling/schedulingDelete', query)
}
/**  启动/暂停作业 */
export function schedulingConfig(query) {
  return get(BASE_URL + '/scheduling/schedulingConfig', query)
}
/** 根据字典分组查询字典数据信息 */

export function getDictList(query) {
  return get(BASE_URL + '/dictItems/listByType/' + query)
}
